<%@tag import="itsm.isperp.control.form.process.WorkflowProcesser"%>
<%@ tag language="java" pageEncoding="UTF-8" description="user view 控件."
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ attribute name="readonly" required="false" rtexprvalue="true"
	type="java.lang.Boolean" description="默认false"%>
<c:set var="readonly" value="${readonly eq true?true:false }"></c:set>

<div class="box tabbedBox tabbedBoxFixed">
	<div class="header">
		<ul>
			<li class="current"><a href="#basicInfo">基本信息</a>
			</li>

			<li><a href="#relationCi">关联资产（<label id="relationCiCount"
					style="color:red"></label>） </a>
			</li>
			<li><a href="#cusIncidentHistory">历史事件（<label
					id="cusIncidentHistoryCount" style="color:red"></label>）</a>
			</li>

		</ul>
		<h2>&nbsp;</h2>
	</div>
	<div style="padding:0" class="content tabbed">
		<div id="basicInfo">
			<jsp:doBody />
		</div>
		<div id="relationCi">
			<isperp:grid gridId="categoryCiGrid"
				url="configuration/ci/listByCusUserId?cusUserId=${model.id }"
				showToolbar="false" height="auto" cusFormatterActions="false"
				showSearchbar="false" sortname="code"
				loadComplete=" $('#relationCiCount').text( categoryCiGrid.jqGrid.getGridParam('records'));">

				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="code" title="编号" width="70">
				</isperp:column>
				<isperp:column name="name" title="名称" width="100">
				</isperp:column>
				<isperp:column name="status" title="状态" width="60">
				</isperp:column> 
				<isperp:column name="useStaffName" title="责任人" width="60">
				</isperp:column>
				<isperp:column name="address" title="位置" width="100">
				</isperp:column>

				<%-- <isperp:column name="expiredDate" title="报废截至日期"
					isFormatterFun="true"
					formatter="return ciDateFormatter(cellvalue,1);" width="100">
				</isperp:column> --%>
			</isperp:grid>
		</div>


		<div id="cusIncidentHistory">

			<isperp:grid
				url="incident/incident/listByCusUser?cusUserId=${model.id }"
				showSearchbar="false" gridId="userIncidentHistoryGrid" rowNum="10"
				height="auto" showPager="true"
				ondbClickRowEvent="userIncidentHistoryGrid.view(rowid);"
				showToolbar="false" cusViewUrl="incident/incident/view"
				loadComplete=" $('#cusIncidentHistoryCount').text( userIncidentHistoryGrid.jqGrid.getGridParam('records'));">
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="code" title="事件编号" width="100">
				</isperp:column>
				<isperp:column name="title" title="标题" width="200">
				</isperp:column>
				<isperp:column name="createDate" title="报障时间" width="100">
				</isperp:column>
				<isperp:column name="status" title="处理状态" width="60">
				</isperp:column>
				<isperp:column name="solverName" title="处理人" width="60"
					align="center">
				</isperp:column>
				<isperp:column name="solvedDate" title="解决时间" width="100">
				</isperp:column>
			</isperp:grid>

		</div>

	</div>
</div>